﻿
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Dtos;
using Volo.Abp.Application.Services;
using Volo.Abp.Domain.Repositories;
using tms.DicTypes.Dto;
using Microsoft.AspNetCore.Mvc;
using tms.Filters;

namespace tms.DicTypes
{
    [CustomerAuth]
    [ApiExplorerSettings(GroupName = "v1")]    
    public class DicTypeService : CrudAppService<DicType, DicTypeDto, Guid, PagedAndSortedResultRequestDto, CreateUpdateDicTypeDto>, IDicTypeService
    {
        private readonly IRepository<DicType, Guid> repository;

        public DicTypeService(IRepository<DicType, Guid> repository) : base(repository)
        {
            this.repository = repository;
        }

        public override Task<DicTypeDto> CreateAsync(CreateUpdateDicTypeDto input)
        {
            return base.CreateAsync(input);
        }

        public override Task<PagedResultDto<DicTypeDto>> GetListAsync(PagedAndSortedResultRequestDto input)
        {
            return base.GetListAsync(input);
        }

        public override Task<DicTypeDto> GetAsync(Guid id)
        {
            return base.GetAsync(id);
        }

        public override Task<DicTypeDto> UpdateAsync(Guid id, CreateUpdateDicTypeDto input)
        {
            return base.UpdateAsync(id, input);
        }

        public override Task DeleteAsync(Guid id)
        {
            return base.DeleteAsync(id);
        }
    }
}